-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[POWEROPS-2558] chore: linters and codecov in workflows #406
Conversation
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just added a few questions for my understanding.
SETTINGS__COGNITE__CLIENT_ID: ${{ vars.CLIENT_ID }} | ||
SETTINGS__COGNITE__PROJECT: ${{ vars.PROJECT }} | ||
SETTINGS__COGNITE__CDF_CLUSTER: ${{ vars.CLUSTER }} | ||
SETTINGS__COGNITE__TENANT_ID: ${{ vars.TENANT_ID }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: Is this pointing to environment variables in the CI environment? I don't see them there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They're on the repo level because all the envs need them
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.9" | ||
|
||
# The installation is required as mypy must be run in the local system environment, not in the pre-commit environment. | ||
- name: Install required dependencies | ||
run: | | ||
python3 -m pip install --upgrade pip poetry | ||
poetry config virtualenvs.create false | ||
poetry install | ||
|
||
- name: Linting and static code checks | ||
run: | | ||
pre-commit run --all-files | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: Not needed here because we do it in build.yml?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, no need to re-run pre-commit on merge to main given the branch protections and strict requirements for passing on PRs toward main
Description
Please describe the change you have made.
Checklist: